package springcloud_eureka_feign_consumer2.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Consumer2Controller {
	//注解映射请求路径
	@RequestMapping("/hello")
	//@RequestParam主要用于将请求参数区域的数据映射到控制层方法的参数上
    public String index(@RequestParam String name) {
        return name+",Hello World";
    }
}